package com.lovo.pis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.pis.dto.PowerBean;
import com.lovo.pis.dto.RoleBean;
import com.lovo.pis.dto.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<RoleBean> {

    List<RoleBean> selectPowerName(List<Integer> roleIdList);

    void deletePower(int roleId);

    void insertPower(@Param("roleId") int roleId, @Param("list")List<Integer> list);

    RoleBean selectRole(int id);
}
